#include "junix.h"
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>

using namespace std;

int main(int argc, char **argv)
{
	vector<int> v(10);
	using namespace boost::lambda;
	srand(time(0));
	for_each(v.begin(), v.end(), _1=bind(rand)%10);

	for( vector<int>::iterator p=v.begin();p!= v.end(); p++)
	{
		cout<<*p<<endl;
	}
	
}
